<!doctype html>
<html class="yunj-admin-sm">
<head><meta charset="UTF-8">
    <title>登录</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link rel="icon" href="/favicon.ico" type="img/x-ico" />
    {include file="$adminViewPath.public.head" /}
    <link rel="stylesheet" href="/static/yunj/css/login.min.css?v={$Think.YUNJ_VERSION}">
    <style type="text/css">
        .captcha-inline{
            display: flex;
        }
        .captcha-inline img{
            height: 50px !important;
            min-width:100px !important;
            margin-left: 10px !important;
            padding-left: 0 !important;
            cursor: pointer;
        }
    </style>
    {include file="$adminViewPath.public.parent.headScript" /}
    {include file="$adminViewPath.public.moduleInit" /}
</head>
<body class="login-bg">
<div class="login layui-anim layui-anim-up">
    <div class="message">云静Admin - 登录</div>
    <div id="darkbannerwrap"></div>

    <form method="post" class="layui-form" data-url="{:url()}" data-method="post">
        <input type="text" name="username" placeholder="账户" autocomplete="off" lay-verify="required" class="layui-input">
        <hr class="hr15">
        <input type="password" name="password" placeholder="密码" autocomplete="off" lay-verify="required" class="layui-input">
        <hr class="hr15">
        <div class="captcha-inline">
            <input type="text" name="captcha_code" placeholder="图形验证码" autocomplete="off" lay-verify="required" autocomplete="off" class="layui-input">
            <img id="captcha_img" src="{:captcha_src()}" alt="captcha" class="layui-input" title="点击切换">
        </div>
        <hr class="hr15">
        <input value="登录" lay-submit lay-filter="login_btn" style="width:100%;" type="submit">
        <hr class="hr20">
    </form>
</div>
<script type="text/javascript" src="/static/yunj/js/theme.min.js?v={$Think.YUNJ_VERSION}" charset="utf-8"></script>
<script type="text/javascript">
    layui.use(['layer','jquery','yunj'],function () {
        let $ = layui.jquery;
        let doc=document;

        $(doc).on('click','#captcha_img',function () {
            let src=$(this).attr('src');
            src=yunj.urlPushParam(src,'t',yunj.currTimestamp());
            $(this).attr('src',src);
        });
        
    });
</script>
</body>
</html>